home *** CD-ROM | disk | FTP | other *** search
- Path: dispatch.news.demon.net!demon!broadwtr.demon.co.uk
- From: womble@broadwtr.demon.co.uk (Dean Richardson)
- Newsgroups: comp.lang.c++
- Subject: HOW: Setting a FAT Directory Attibute
- Date: Tue, 02 Apr 1996 19:43:28 GMT
- Message-ID: <828441810.13371@broadwtr.demon.co.uk>
- NNTP-Posting-Host: broadwtr.demon.co.uk
- X-NNTP-Posting-Host: broadwtr.demon.co.uk
- X-Newsreader: Forte Free Agent 1.0.82
-
- Hi all -
-
- I wish to set an attribute upon a directory. The directory could be
- on FAT (DOS), VFAT (Windows 95) or Netware file server - however I
- wish to use an operating system / ANSI call so that any TSRs (eg
- Netx/VLM) will redirect the call as appropriate. I don't want to be
- operating system specific.
-
- I'm using _rtl_chmode() (Borand C++ 4.5, DOS application) to change
- attributes upon files - no problem. I don't think I can use this for
- a directory (eg, set ReadOnly on "C:\\TEMP\\ ."). Or can I.
-
- In case you're wondering why I want to do this, my firm requires I
- write a program which takes a copy of the directory structure on a
- machine. The directory structure must include directory attributes -
- for example a Windows 95 briefcase directory has to be marked ReadOnly
- for it to work properly.
-
- Responses by EMail would be appreciated - I don't get to this
- conference very often.
-
- Many thanks,
- Dean
- ---
- Womble@broadwtr.demon.co.uk
-
-